%{
#include "correlation.h"
#include "ialglib.h"
%}

// Complete wrapping and testing

double pearsoncorrelation(const ap::real_1d_array& x,
     const ap::real_1d_array& y,
     int n);
     
%rename(spearmanrankcorrelation) wrap_spearmanrankcorrelation;
%inline %{
double wrap_spearmanrankcorrelation(const ap::real_1d_array& x,
     const ap::real_1d_array& y,
     int n) {
     ap::real_1d_array x1,y1;
     x1=x;
     y1=y;
     return spearmanrankcorrelation(x1,y1,n);
     
}
%}

